import express from "express";
const router = express.Router();
import upload from "../plugins/multer";
import uploadFn from "./upload";
import sliceFn from "./slice";
import groupIdFn from "./groupId";
import delFn from "./del";
import editorUpload from "./editor-upload";

router
  .post("/upload", upload.single("file"), uploadFn)
  .post("/editor-upload", upload.single("file"), editorUpload)
  .post("/slice", upload.single("file"), sliceFn)
  .get("/getFileByGroupId", groupIdFn)
  .get("/del", delFn);

export default router;
